package org.yangspring.samples.mvc.domain;

import javax.persistence.*;

/**
 * Created by whyang on 2017/06/19.
 */


@Entity
@Table(name = "T_cats")
@PrimaryKeyJoinColumn(name = "catId")
public class AnimalJoinCat extends AnimalJoin{

    @Column(name = "legs")
    private int legs;

    public void setLegs(int legs){
        this.legs = legs;
    }
    public int getLegs(){
        return this.legs;
    }

}
